using System;
using System.IO;
using Commands.Logging;

namespace RemoteCommands
{
    internal static class LogFile
    {
        static LogFile()
        {
            if (File.Exists(LOG_FILENAME)) 
                return;

            using (File.Create(LOG_FILENAME)){ }
        }

        internal static void AddString(string newText)
        {
            File.AppendAllText(LOG_FILENAME, newText + Environment.NewLine);
        }

        private const string LOG_FILENAME = @"Log.txt";
    }
}